//
//  MyCircleEightButton.h
//  CanYouDoIt
//
//  Created by hoangtx on 7/11/13.
//
//

#ifndef CanYouDoIt_MyCircleEightButton_h
#define CanYouDoIt_MyCircleEightButton_h

#include "MyRotatingButton.h"
using namespace cocos2d;

class MyCircleEightButton : public MyRotatingButton{

public:
    CCPoint topOrigin;
    CCPoint botOrigin;
    int currentRotatingState;
    double distanceTravel;
    void reverse();
    void resetState();
    void randomDirection();
    virtual void setCircle(CCPoint mOrigin,double mRadius);
    virtual void handleUpdate(float dt);
    static MyCircleEightButton* create(const char* fileName, double mX,double mY,double mWidth,double mHeight);
    virtual bool init();
    CREATE_FUNC(MyCircleEightButton);
};


#endif
